﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MaxLeaf.KH.Contract;
using MaxLeaf.KH.DALProxy;
using MaxLeaf.KH.DataContract;
using CommonsLib.Utility;
using CommonsLib.Settings;

namespace MaxLeaf.KH.BLLImplementation
{
    public class TestBLL :BaseBLL, ITest
    {
        ITest _dalproxy = null;
        public virtual ITest DALProxy
        {
            get
            {
                if (_dalproxy == null)
                {
                    _dalproxy = new TestDALProxy();
                }
                return _dalproxy;
            }
        }
        public TestModel SayHello(TestModel user)
        {
             
                LogManager.Debug("BLL SayHello ");
                user = DALProxy.SayHello(user);
                user.Name = string.Format("Hello {0}", user.Name);
                return user;
             
            
        }

        public string ShowError(string strName)
        {
             
             

                return DALProxy.ShowError(strName);
            
            
        }

        #region ITest 成员


        public List<object> SelectDtl(TestModel user)
        {
            return DALProxy.SelectDtl(user);
        }

        #endregion
    }
}
